GXGetPrinterViewDevice
You can use theGXGetPrinterViewDevice
function to obtain a printer object's view device, using an index value.
gxViewDevice GXGetPrinterViewDevice (gxPrinter aPrinter, long whichViewDevice);
aPrinter
- A reference to the printer object whose view device you wish to obtain.
whichViewDevice
- An index value that specifies the position of the view device reference in the printer object's view device list.
- function result
- A reference to the specified view device.
DESCRIPTION
You specify an index value, starting with 1, in thewhichViewDevice
parameter. The parameter specifies a particular view device. You can specify 0 in thewhichViewDevice
parameter to obtain the view device that represents the current view device, which allows you to obtain the current resolution and color space for the printer.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found, or there was not enough memory to load it. SEE ALSO
For examples that use the GXGetPrinterViewDevice function, see "Determining a Printer's Resolution" on page 4-26 and "Retrieving the Color Profile and Color Space for a Printer" on page 4-27.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help